package com.turman.coroutionsample.viewmodel

import android.app.Application
import androidx.lifecycle.AndroidViewModel
import kotlinx.coroutines.flow.MutableStateFlow

class StateFlowViewModel(app: Application) : AndroidViewModel(app) {
    val number = MutableStateFlow(0)

    fun inCrement() {
        number.value++
    }

    fun deCrement() {
        number.value--
    }
}